package com.dfire.soa.mcsao.service;

import com.dfire.soa.mcsao.IInterfaceAndAnnotationService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

/**
 * Created mangcao with 2019/1/18 9:37
 * Description:
 */
@Service
public class InterfaceAndAnnotationService implements IInterfaceAndAnnotationService {

    private final static Logger LOGGER = LoggerFactory.getLogger(InterfaceAndAnnotationService.class);

    private String INTERFACEANDANNOTATIONSERVICE = "InterfaceAndAnnotationService_";


    @Override
    public String getName() {
        return INTERFACEANDANNOTATIONSERVICE;
    }

    @PostConstruct
    public void PostConstruct(){
        LOGGER.info("PostConstruct");
        INTERFACEANDANNOTATIONSERVICE = INTERFACEANDANNOTATIONSERVICE + "PostConstruct_";

    }

    @PreDestroy
    public void PreDestroy(){
        LOGGER.info("PreDestroy");
        INTERFACEANDANNOTATIONSERVICE = INTERFACEANDANNOTATIONSERVICE + "PreDestroy_";
    }



}
